Pike on Windows (sprshd build)

[ Start > PikeDevel > Pike on Windows (sprshd build) ] [ Edit this Page | Show Page Versions | Show Formatted ]


1. install windows
1. install pike for windows
1. install vc++ 6.0 or vc2008
1. install git for windows
1. install wix v2? v3.5 won't work with vc2008, the v2 installer won't work with the "free" edition of vc2008.
1. git clone pike repo
1. git checkout -b nt-tools origin/nt-tools
1. copy nt-tools someplace
1. add pike and nt-tools directory to your nt-path
1. run vc32env.bat to add vc++ environment variables
1. add wix2 to path
1. add pike to path
1. share a folder between the unix "configure" box and the win-nt box.
1. start sprshd on windows box: pike sprshd  


__VC6.0__: If using vc older than 8, edit rntcl and define OLD_VC.
Create $HOME/.init_ntrc:
{code}
REMOTE_METHOD="sprsh"
NTHOST="192.168.1.102"
NTDRIVE="Z:"
NTPORT=9999
NTMOUNT=/Users/hww3/
NTLD_LIBRARY_PATH=/Users/hww3/win32libs/lib
RNTCL_VC=12
{code}

on configure box, run nt-tools/init_nt
then, run configure normally:

{code}
CC=rntcl LDFLAGS="-LZ:/win32libs/lib" CPPFLAGS="-IZ:/win32libs/include" CXX=rntcl make
{code}

Getting an error 267 create_process on sprshd can mean that the drive and directory you specify in the configure  - to - build drive mapping isn't right (wrong drive or wrong folder)

__VC6.0__: When compiling system/nt.c, you may get an error about PIDLIST_ABSOLUTE not being defined. This can be remedied with the following typedef:

{code}
typedef ITEMIDLIST *PIDLIST_ABSOLUTE;
{code}

__VC6.0__: STRUNCATE isn't defined, so fdlib.c will fail. The following define should resolve the problem:

{code}
#ifndef STRUNCATE
#define STRUNCATE 80
#endif /*STRUNCATE*/
{code}

__Building Nettle__

CC=rntcl ./configure --disable-assembler --build=i686-pc-windows_nt

__VC6.0__ doesn't support the 0nnULL syntax for specifying a 64 bit constant; you must remove the "LL" from all such definitions, otherwise errors will occur.

Copy nettle.lib and nettle/*.h to appropriate places in win32libs. 


__Details and Background__

Martin Sternholm is the current "master builder" for Windows. He put together a lengthy and informative document describing the steps involved in preparing a windows build. This document is a must-read for anyone interested in building Pike for Windows themselves.

- http://article.gmane.org/gmane.comp.lang.pike.user/8287

Powered by PikeWiki2

 
gotpike.org | Copyright © 2004 - 2009 | Pike is a trademark of Department of Computer and Information Science, Linköping University